package com.senlingspace.payment.lakala.service;

import com.senlingspace.common.exception.payment.LakalaException;
import com.senlingspace.payment.lakala.bean.request.LakalaRefundRequest;
import com.senlingspace.payment.lakala.bean.response.LakalaRefundResponse;

/**
 * 拉卡拉普通退款 api
 *
 * @author lebronjames
 * @date 2024/07/24
 */
public interface LakalaRefundService {

    /**
     * 退款
     * <p>
     * 支持部分退
     *
     * @param request
     * @return {@link Object }
     * @throws LakalaException 拉卡拉异常
     *                         抛出这个异常，说明是平台自身问题，还没有到拉卡拉服务接口层
     */
    LakalaRefundResponse refund(LakalaRefundRequest request) throws LakalaException;

}
